home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / biz / haage / WarpUP_V31.lha / WarpUP-WarpOS / WarpRace / warprace.h < prev    next >
C/C++ Source or Header  |  1997-09-24  |  3KB  |  75 lines

  1. #ifndef         WARPRACE_H
  2. #define         WARPRACE_H
  3.  
  4. /*
  5. **      $VER: WarpRace.h 1.0 (20.9.97)
  6. **
  7. **      '(C) Copyright 1997 Haage & Partner Computer GmbH'
  8. **           All Rights Reserved
  9. **
  10. **      structures for custom modules
  11. **
  12. */
  13.  
  14. #ifndef EXEC_TYPES_H
  15. #include "exec/types.h"
  16. #endif /* EXEC_TYPES_H */
  17.  
  18.  
  19. /*  data structures/equates used by custom modules */
  20.  
  21. #define         WR_ID   0x52414345              /* identifaction value passed to */
  22.                                                 /* the module as first argument */
  23.  
  24. /* data structure passed to the module as second argument */
  25.  
  26. struct WR_Input {
  27.         APTR    WRI_PowerPCBase;                /* base of powerpc.library */
  28.         ULONG   WRI_Version;                    /* version of powerpc.library */
  29.         void    (*WRI_StartTimer_68K)(void);    /* start timer function (68K) */
  30.         ULONG   (*WRI_StopTimer_68K)(void);     /* stop timer function (68K) */
  31.         void    (*WRI_StartTimer_PPC)(APTR);    /* start timer function (PPC) */
  32.         ULONG   (*WRI_StopTimer_PPC)(APTR);     /* stop timer function (PPC) */
  33.         APTR    WRI_LinkerDB;                   /* argument for PPC timer func */
  34.         BOOL    WRI_68K;                        /* TRUE for 68K-modules */
  35.         ULONG   WRI_Flags;                      /* not used yet */
  36.         APTR    WRI_Ext;                        /* reserved for future extension */
  37. };
  38.  
  39. /* data structure returned from the module (if not NULL is returned) */
  40.  
  41. struct WR_Output {
  42.         STRPTR  WRO_Modname;                    /* module name */
  43.         STRPTR  WRO_Short;                      /* module short desription */
  44.         STRPTR  WRO_Description;                /* module full description */
  45.         STRPTR  WRO_Author;                     /* module author */
  46.         ULONG   WRO_Version;                    /* module version */
  47.         ULONG   WRO_Revision;                   /* module revision */
  48.         ULONG   WRO_RevSize;                    /* number of digits for revision */
  49.         ULONG   WRO_Flags;                      /* not used yet */
  50.         STRPTR  WRO_Result;                     /* result used for statistics */
  51.         ULONG   WRO_ResultType;                 /* result type (see below) */
  52.         STRPTR  WRO_ResultString;               /* result string for VPrintf */
  53.         APTR    WRO_ResultParams;               /* arguments for WRO_ResultString */
  54.         ULONG   WRO_Status;                     /* completion status (see below) */
  55.         STRPTR  WRO_ErrorString;                /* error string for VPrintf */
  56.         APTR    WRO_ErrorParams;                /* arguments for WRO_ErrorString */
  57.         APTR    WRO_Ext;                        /* reserved for future extension */
  58. };
  59.  
  60. /* result types */
  61.  
  62. #define RES_UNKNOWN     0                       /* unknown */
  63. #define RES_PROP        1                       /* unknown - proportional to power */
  64. #define RES_INVPROP     2                       /* unknown - inv. proportional */
  65. #define RES_MICROSECS   3                       /* time in microseconds */
  66. #define RES_BYTESPERSEC 4                       /* memory performance (bytes/sec) */
  67.  
  68. /* status values */
  69.  
  70. #define STATUS_SUCCESS  -1
  71. #define STATUS_ERROR    0
  72.  
  73.  
  74. #endif  /* WARPRACE_H */
  75.